<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>

<s:set name="customerLoginCheck" value="%{#session.customerLogin}" />
	<s:if test="%{#customerLoginCheck!=null}">
<div id="container">
<center><h2>Buy Record</h2></center>
	<table style="width: 100%">



		<tr style="background: #DDD">
			<td>Customer</td>
			<td>Status</td>
			<td>Date</td>
			<td>Edit</td>
			
		</tr>


		<s:iterator value="invoices">
			<tr>
				<td><s:property value="customer.getName()" /></td>

				<td><s:property value="status" /></td>
				<td><s:property value="dateString" /></td>
				<td><s:form action="customerInvoiceDetail" namespace="/">
						<s:hidden name="id" value="%{id}" />
						<s:submit name="viewInvoice" value="Detail">
						</s:submit>
					</s:form></td>

			</tr>
		</s:iterator>

	</table>



</div>
</s:if>